using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DTO;
using BUS;
using Utility;
public partial class Admin_DiaDiem_Detail : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadData();
        }
    }
    private void LoadData()
    {
        try
        {
            int id = int.Parse(Request.QueryString["id"]);
            tbDiaDiem dd = tbDiaDiemBUS.GetByID(id);
            //tbCuaHang ch = tbCuaHangBUS.GetByID(dd.madiadiem);
            //lit_cuahang.Text = ch.tencuahang;
            lit_diadiem.Text = dd.tendiadiem;
            
           
        }
        catch
        {
            Response.Redirect("~/Admin/DiaDiem_List.aspx");
        }

    }
}
